<?php
	header('Content-type: text/xml');
	echo '<?xml version="1.0" encoding="UTF-8"?>';

	echo '<Response>';

        $user_pushed = (int) $_REQUEST['Digits'];

        if ($user_pushed == 1){
            // 1 is pressed, update the server_manage.leap_signups table and set status=1 for that record and set verifiedby=phone
            echo '<Say voice="woman">Thank you</Say>';
            echo '<Say voice="woman">We will activate your account within 5 minutes. We will send you a welcome email shortly</Say>';
        }
        # @start snippet
        else if ($user_pushed == 0){
            echo '<Say voice="woman">Thank you</Say>';
            echo '<Say voice="woman">We have removed your request</Say>';
        }
        # @end snippet
        else {
            // We'll implement the rest of the functionality in the 
            // following sections.
            echo '<Say voice="woman">Sorry, You have selected an invalid choice.</Say>';
            echo '<Redirect>callback.php</Redirect>';
        }

        echo '<Hangup/>';
	echo '</Response>';
?>
